<!doctype html>
<html>
<head>
    <include file="Public/head"/>
    <link href="__CSS__/main.css" rel="stylesheet" type="text/css" />
    <link href="__CSS__/index.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__JS__/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jquery.inputbox.js"></script>
    <script type="text/javascript">
        function trace(data){
            console.log(data);
        }
        $(function(){

//            $('div[name="city"]').inputbox({
//                height:24,
//                width:100
//            });

//            $('.cbt').inputbox();

            //$('[name="rbt"], [name="rbt2"]').inputbox();


            var checks = $("div[name='check[]']");
            trace(checks);
//
//            for(var i=0;i<checks.length;i++){
//                trace(checks[i]);
//                $(checks[i]).on('click',function(){
//                    trace(this);
//                    if($(this).hasClass('cb_active')){
//                        $(this).removeClass('cb_active');
//                    }else{
//                        $(this).addClass('cb_active');
//                    }
//
//                });
//            }
//
//            $('.cbt.all').on('click',function(){
//                trace('全选');
//                if($(this).hasClass('cb_active')){
//                    $(this).removeClass('cb_active');
//                }else{
//                    $(this).addClass('cb_active');
//                }
//            });

        });
    </script>

</head>

<body>
<div class="top-head">
    <a class="edit" href="{:U('Center/collection')}">完成</a>
</div>
<form action="{:U('Center/collection_delete')}" method="post">
    <div class="colletion-content">



        <volist name="collections" id="collection">
            <div class="cart-good" style="border-top:none;">
                <div class="cart-radio">
                    <div class="cbt cb cb_active">
                        <input type="checkbox" hidden="hidden" name="collection_id[]" value="{$collection.id}" checked="checked">
                    </div>
                </div>
                <img src="http://{:C('DOMAIN')}{:get_item_imgs($collection['goods_multimage'],1,'path')['path']}">
                <div class="good-data cart-width">
                    <p>{$collection.goods_title}</p>
                    <if condition="$collection['goods_price'] gt 0">
                        <p class="color-red margin-top">￥{$collection.goods_price}</p>
                        <else/>
                        <a class="invalid-btn3">失效</a>
                        <p class="color-red"><span class="size">￥--</span></p>
                    </if>
                </div>
            </div>
        </volist>


    </div>
    <div class="choose-all border-top" style="position:fixed; bottom:0; border-bottom:none;">
        <div class="all-radio" style="width:63%;">
            <div class="cbt all checked  cb cb_active" name="checkAll">
            </div>全选
        </div>
        <button class="settlement fr">删除</button>
    </div>
</form>
<include file="script"/>
</body>
</html>
